
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www/w3/org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=windows-1252" />
		
        <link rel="stylesheet" type="text/css" href="./include/bumbumtrain.css" />
    	
		 <!--[if IE6]>
        	 <style type="text/css">
				img, div { behavior: url(./include/iepngfix/iepngfix.htc) }
			</style>
		<![endif]-->
       <script type="text/javascript" src="./js/jquery-1.3.2.min.js">
		</script>
		<script type="text/javascript" src="./include/bumbumtrain.js">
		</script>
				<script type="text/javascript">
			var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
			document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		</script>
		<script type="text/javascript">
			try {
				var pageTracker = _gat._getTracker("UA-8553481-2");
				pageTracker._trackPageview();
			} catch(err) {}
		</script>
		
		<title>BumBumTrain</title>
	
	</head>
	
	
<?php
$page_title='contact';
include('home_banner.html');
include('include/config.inc.php');

if(isset($_POST['submitted'])){
	$errors=array();
	//check for name
	if(empty($_POST['name'])){
		$errors[]='You forgot to enter your name.';
	}
	//check for email address
	if(empty($_POST['email'])){
		$errors[]='You forgot to enter your email.';
	}
	if(empty($errors)){
		$body="Thanks {$_POST['name']}\nYou have contacted the bumbumtrain";
		mail($_POST['email'],'Bumbumtrain Contact Form',$body,'From: no-reply@bumbumtrain.co.uk');
		
		$body="you have new contact from the website - \n
		name: '{$_POST['name']}'\n
		email:'{$_POST['email']}'\n
		comments:'{$_POST['comments']}'\n";
		mail('doabackflip@yahoo.com','contact from website',$body,'From: contact_form@bumbumtrain.co.uk');
		echo'<div id="main_contact_message_success"><span class="header">Thanks</span>
		<br/>You have contacted bumbumtrain.<br/>We\'ll be in touch ;-)</p>
		</div>';
	}
	else{//report the errors
		echo'<div id="main_contact_message_error"><span class="header">Sorry</span>
		<br/>The following information is missing:<br/>';
		foreach($errors as $msg){
			echo" - $msg<br/>\n";
		}
		echo'Please go back and try again
		</div>';
	}
}



?>
<body id="main_body" class="main_window" onload="init();">
    <div id="loading" class="loading-invisible">
        <p>Loading, please wait</p>
    </div>
     <script type="text/javascript">
    document.getElementById("loading").className = "loading-visible";
    var hideDiv = function(){document.getElementById("loading").className = "loading-invisible";};
    var oldLoad = window.onload;
    var newLoad = oldLoad ? function(){hideDiv.call(this);oldLoad.call(this);} : hideDiv;
    window.onload = newLoad;
    </script>
	
	<div id="contact_form">
		<form action="./contact.php" method="post">
			<div id="name_box" >
				<label>Name:</label><br/>
           	 	<input type="text"
                  maxlength=25
                  name="name"/>
			</div>
			<div id="email_box"><label>Email:</label><br/>
				<input type="text"
					maxlength=40 
					name="email" 
					/>
       	 	</div>
			<div id="comment_box">
				<label>Comment:</label><br/>
				<textarea
					cols="40"
					rows="5"
					name="comments" 
					id="comments">
				</textarea>
				<!-- <div id="volunteer_link" class="volunteer_link">
					<img id="volunteer_link_image" src="newimages/volunteercar.gif" alt="volunteer" border="none"/>
				</div>
				-->
			</div>
			
			<div id="submit_grater">
				<button id="submit_button" type="submit" name="submit" value="submit"><img src="newimages/sendgrater.gif" alt="submit"/>
				</button>
			</div>
			<input type="hidden" name="submitted" value="TRUE"/>
		</form>
	</div>
	<div id="refresh_link">
		<a href="contact.php"><img src="./newimages/refreshgrater.gif" alt="refresh" border="none"/></a>
	</div>
	
	<div id="myspace_link">
		<a href="http://www.myspace.com/bumbumtrain"><img src="./newimages/myspacelink.gif" alt="bumbumtrain@myspace.com" border="none"/></a>
	</div>
	<div id="phone_numbers">
		<img src="newimages/phonenumbers.gif" alt="kate bond:07842889777, morgan lloyd: 07712043195"  border="none"/>
	</div>

	<!-- <div id="vol_form_box">
		<div id="volunteer_form">
			<form action="contact.php" method="post">
				<div id="vname_box" >
					<label>Name:</label><br/>
        	    	<input type="text"
        	    		maxlength=25
            	      	name="vname"
            	      	id="vname"/>
				</div>
				<div id="vemail_box"><label>Your Email:</label><br/>
					<input type="text"
					maxlength=40 
					name="vemail"/>
    	    	</div>
				<div id="vcomment_box">
					<label>Comment:</label><br/>
					<textarea
						name="vcomments" 
						id="vcomments"
						rows="5"
						cols="23">
					</textarea>
					<div id="volunteer_form_image">
						<img src="newimages/volunteercar_drivein.gif"/>
					</div>	
				</div>
				<div id="vsubmit_grater">
					<button id="vsubmit_button" type="submit" name="submit" value="submit"><img src="newimages/sendgrater.gif" alt="submit"/>
					</button>
				</div>
			</form>
			
			</div>
		</div>
		-->
</body>
<script type="text/javascript">  
        setbackground('contact');
    </script>
</html>
